package edu.berkeley.drivingbuddy;

import android.location.Location;

import java.util.List;
import java.util.ArrayList;

public class ResultGroup {
	private String mName;
	private List<ResultObj> mResults;
	private Location mStartLocation;
	private Location mEndLocation;

	public ResultGroup(Location startLocation, Location endLocation) {
		mName = "";
		mResults = new ArrayList<ResultObj>();
		mStartLocation = startLocation;
		mEndLocation = endLocation;
	}

	public void setName(String name) {
		mName = name;
	}

	public String getName() {
		return mName;
	}

	public List<ResultObj> getResults() {
		return mResults;
	}

	public void addResult(ResultObj result) {
		mResults.add(result);
	}
	
	public Location getStartLocation(){
	    return mStartLocation;
	}
	public Location getEndLocation(){
	    return mEndLocation;
	}
}
